#ifndef MYDBCONTROL_H
#define MYDBCONTROL_H

#include <QObject>
class MyDBExec;
class QSemaphore;
class MyDBControl : public QObject
{
    Q_OBJECT
protected:
    explicit MyDBControl(QObject *parent = nullptr);
public:
    MyDBExec *getExec();
    void releaseExec(MyDBExec *exec);
    static MyDBControl *getObject();

protected:
    QList<MyDBExec *> execlist;
    QSemaphore * semaphore;
    static MyDBControl *obj;

signals:

public slots:
};

#endif // MYDBCONTROL_H
